/*------------------------------------------------------------------------------
 * Copyright 2012 NCR Corporation
 *------------------------------------------------------------------------------
 * All revision information is updated automatically from source code control
 * change records - please do not manually edit.
 *------------------------------------------------------------------------------
 *
 * $LastChangedRevision:: 1730                                     $
 * $LastChangedBy:: rb250096                                       $
 * $LastChangedDate:: 2012-03-07 15:51:59 -0500 (Wed, 07 Mar 2012) $
 */

package com.ncr.nep.dashboardcore.rest.client;

/**
 * An enumeration defining various commonly used MIME types.
 *
 * @author rb250096
 * @version $Revision: 1730 $
 */
public enum MIMEType {

    /**
     * JSON document MIME type.
     */
    APPLICATION_JSON("application/json"),

    /**
     * Form encoded data MIME type.
     */
    APPLICATION_FORM_ENCODED("application/x-www-form-urlencoded"),

    /**
     * Plain text MIME type.
     */
    TEXT_PLAIN("text/plain"),

    /**
     * HTML MIME type.
     */
    TEXT_HTML("text/html");

    /**
     * The string value of the MIME type.
     */
    protected String type;

    /**
     * Constructor
     *
     * @param type The MIME type.
     */
    MIMEType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return this.type;
    }
}
